make: Make "src-tarball" target actually make a source tarball
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Mon, 15 Sep 2014 16:25:04 +0000 (17:25 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 23 Sep 2014 17:41:27 +0000 (18:41 +0100)
commitd5fb9fb71a880fe7dfb8c7de87397988520a4078
treea1f23ab1e4aee9629549134bec8917dec75dd4e1
parent1e491e54278853fa93cbb73a3a6c3cc8acfde245
make: Make "src-tarball" target actually make a source tarball

At the moment, making a release tarball is an annoyingly manual
process that involves running "git archive" into a temporary directory.

Script this process up and make a target, so that the release manager
can simply type "make src-tarball-release" and have everything show up
nice and neat in dist/xen-$version.tar.gz.  "make src-tarball" will
make a version number based on git describe, which will typically have
the most recent tag, number of commits since that tag, and the git
commit id of the current HEAD.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Makefile
tools/misc/mktarball [new file with mode: 0755]